import instance from "@/axios";

export const getUserInfoByQQ = (qq) => {
    return instance({
        url: '/comment/qq/userInfo',
        method: 'POST',
        data: {qq}
    })
}

// 发布评论
export const publishComment = (data) => {
    return instance({
        url: '/comment/publish',
        method: 'POST',
        data
    })
}

// 获取所有评论
export const getComments = (routerUrl) => {
    return instance({
        url: '/comment/list',
        method: 'POST',
        data: {routerUrl}
    })
}